//-----------------------------------------------------------------------
// <copyright file="a_Countries_SService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_Countries_SService
    {
        #region a_Countries_S

        public static void Createa_Countries_S(a_Countries_S a_Countries_S)
        {            
            try
            {
                a_Countries_SDAO a_Countries_SDAO = new a_Countries_SDAO();
                a_Countries_SDAO.Createa_Countries_S(a_Countries_S);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Countries_S(a_Countries_S a_Countries_S)
        {            
            try
            {
                a_Countries_SDAO a_Countries_SDAO = new a_Countries_SDAO();
                a_Countries_SDAO.Updatea_Countries_S(a_Countries_S);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Countries_S(int countryID)
        {            
            try
            {
                a_Countries_SDAO a_Countries_SDAO = new a_Countries_SDAO();
                a_Countries_SDAO.Deletea_Countries_S(countryID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Countries_S Geta_Countries_S(int countryID)
        {            
            try
            {
                a_Countries_SDAO a_Countries_SDAO = new a_Countries_SDAO();
                return a_Countries_SDAO.Geta_Countries_S(countryID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_Countries_SCollection Geta_Countries_SList(a_Countries_SColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_Countries_SDAO a_Countries_SDAO = new a_Countries_SDAO();
                return a_Countries_SDAO.Geta_Countries_SList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_Countries_SCollection Geta_Countries_SList(a_Countries_SColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_Countries_SDAO a_Countries_SDAO = new a_Countries_SDAO();
                return a_Countries_SDAO.Geta_Countries_SList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}